import { Injectable, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';

import { Observable } from 'rxjs/Observable';

import { Project } from '../models/index';
// import { Header } from 'primeng/primeng';

@Injectable()
export class ProjectService {

  //  url1 = "http://203.81.246.122:8080/api/security/login";
  

  constructor(private http: HttpClient, @Inject('API_URL') private url: string) { }

 
  product(): Observable<Project> {
    const url = `${this.url}system/project`;
    return this.http.get<Project>(url);
  }

   
 


}
